<?php slot('skill','active'); ?>
             <?php if($sf_user->hasFlash('error')): ?>
                <div class="alert alert-error">
                        <button type="button" class="close" data-dismiss="alert">×</button>
                        <strong>错误！</strong>  <?php echo $sf_user->getFlash('error'); ?>
                </div>
                <?php endif; ?>
                <?php if($sf_user->hasFlash('success')): ?>
                <div class="alert alert-success">
                        <button type="button" class="close" data-dismiss="alert">×</button>
                        <strong>操作成功！</strong> <?php echo $sf_user->getFlash('success'); ?>
                </div>
                <?php endif; ?>
                <?php if($sf_user->hasFlash('notice')): ?>
                <div class="alert alert-info">
                        <button type="button" class="close" data-dismiss="alert">×</button>
                        <strong><?php echo $sf_user->getFlash('notice'); ?></strong> 
                </div>
                <?php endif; ?>
<div class="row-fluid">	
<div class="box span12">
    <div class="box-header">
        <h2><i class="icon-align-justify"></i><span class="break"></span>技能审核</h2>
        <div class="box-icon">
            <a href="#" class="btn-minimize"><i class="icon-chevron-up"></i></a>
            <a href="#" class="btn-close"><i class="icon-remove"></i></a>
        </div>
    </div>
    <div class="box-content">
        <table class="table table-bordered table-striped table-condensed">
              <thead>
                  <tr>
                      <th>技能信息</th>
                      <th>数据</th>                         
                  </tr>
              </thead>   
              <tbody>
                  <tr>
                    <td>ID：</td>
                    <td class="center"><?php echo $skill->getId(); ?></td>                           
                </tr>   
                <tr>
                    <td>标题：</td>
                    <td class="center"><?php echo $skill->getTitle(); ?></td>                           
                </tr>    
                <tr>
                    <td>分类：</td>
                    <td class="center"><?php echo NewSkill::$category_label[$skill->getCategory()]; ?></td>                           
                </tr>
                <tr>
                    <td>年龄边界：</td>
                    <td class="center"><?php echo $skill->getMinAge().'-'.$skill->getMaxAge();  ?></td>                           
                </tr>
                <tr>
                    <td>标签：</td>
                    <td class="center"><?php echo $skill->getTagsToString(); ?></td>                           
                </tr>
                <tr>
                    <td>作者：</td>
                    <td class="center"><?php echo $skill->getUser()->getNickname(); ?></td>                           
                </tr>
                <tr>
                    <td>封面：</td>
                    <td class="center"><img src="<?php echo $skill->getCover(); ?>" width="100" height="50" /></td>                           
                </tr>
              </tbody>
         </table>     
    </div>
</div>
</div>
<?php foreach($skill->getBlocks() as $block): ?>
<div class="row-fluid">	
<div class="box span12">
<!--    <div class="box-header">
        <h2><i class="icon-align-justify"></i><span class="break"></span>Step<?php // echo $step->getSortNum(); ?> 信息 -- 标题：<?php // echo $step->getTitle(); ?></h2>
        <div class="box-icon">
            <a href="#" class="btn-minimize"><i class="icon-chevron-up"></i></a>
            <a href="#" class="btn-close"><i class="icon-remove"></i></a>
        </div>
    </div>-->
    <div class="box-content">
        <table class="table table-bordered table-striped table-condensed">
              <thead>
                  <tr>
                      <th>内容</th>
                  </tr>
              </thead>   
              <tbody>
                <?php // foreach($step->getBlocks() as $block): ?>
                  <tr>
                      <td>
                          <?php echo $block->getRaw('content'); ?>
                      </td>
<!--                      <td>
                          <img src="<?php // echo $block->getContent(); ?>" width="200" height="100" />
                      </td>-->
                  </tr>
                <?php // endforeach; ?>
              </tbody>
         </table>     
    </div>
</div>
</div>
<?php endforeach; ?>

<div class="row-fluid">	
    <form class="form-horizontal" action="<?php echo url_for('skill/change_status'); ?>" method="post">
							<fieldset>
                                                            <input type="hidden" name="id" value="<?php echo $skill->getId(); ?>" />
							  <div class="control-group">
								<label class="control-label" for="selectError3">状态</label>
								<div class="controls">
								  <select name="status">
                                                                      <?php foreach(NewSkill::$status_string as $key=>$status): ?>
                                                                      <option value="<?php echo $key; ?>"
                                                                              <?php echo ($key == $skill->getStatus()) ? 'selected' : ''; ?>
                                                                              ><?php echo $status; ?></option>
                                                                      <?php endforeach; ?>  
                                                                  </select>
								</div>
							  </div>
							  
							  <div class="form-actions">
								<button type="submit" class="btn btn-primary">保存更改</button>
							  </div>
							</fieldset>
						  </form>
</div>